add_executable(tst_qabstractphysicaldevicebackendnode WIN32 MACOSX_BUNDLE
    ../../core/common/testpostmanarbiter.cpp ../../core/common/testpostmanarbiter.h
    ../commons/testdevice.h
    ../commons/testdeviceproxy.h
    tst_qabstractphysicaldevicebackendnode.cpp
)
target_include_directories(tst_qabstractphysicaldevicebackendnode PRIVATE
    ../../core/common
    ../commons
)

target_link_libraries(tst_qabstractphysicaldevicebackendnode PRIVATE
    Qt${QT_VERSION_MAJOR}::3DCore
    Qt${QT_VERSION_MAJOR}::3DCorePrivate
    Qt${QT_VERSION_MAJOR}::3DInput
    Qt${QT_VERSION_MAJOR}::3DInputPrivate
    Qt${QT_VERSION_MAJOR}::Core
    Qt${QT_VERSION_MAJOR}::CorePrivate
    Qt${QT_VERSION_MAJOR}::Gui
    Qt${QT_VERSION_MAJOR}::Test
)

if(QT_FEATURE_private_tests)
    target_sources(tst_qabstractphysicaldevicebackendnode PUBLIC
        ../../core/common/qbackendnodetester.cpp ../../core/common/qbackendnodetester.h
    )
endif()

install(TARGETS tst_qabstractphysicaldevicebackendnode
    BUNDLE DESTINATION .
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

# Consider using qt_generate_deploy_app_script() for app deployment if
# the project can use Qt 6.3. In that case rerun qmake2cmake with
# --min-qt-version=6.3.
